import request from '@/uitls/request'

// 评论点赞
export const addCommontLike = target => {
  return request({
    url: '/v1_0/comment/likings',
    method: 'POST',
    data: {
      target
    }
  })
}

// 取消点赞评论
export const delCommontLike = target => {
  return request({
    url: `/v1_0/comment/likings/${target}`,
    method: 'DELETE'
  })
}

// 对文章进行评论  /v1_0/comments
export const setCommonts = data => {
  return request({
    url: '/v1_0/comments',
    method: 'POST',
    data
  })
}
